import request from '@/utils/aliyunRequest';

const employeeApi = {};


employeeApi.list = () => {
	return request({
		url: '/aliyun-api/employee/list',
		method: 'get',
	})
}
employeeApi.page = (params) => {
	return request({
		url: '/aliyun-api/employee/page',
		method: 'get',
		params: params,
	})
}
employeeApi.add = (params) => {
	return request({
		url: '/aliyun-api/employee',
		method: 'post',
		data: params,
	})
}
employeeApi.update = (params) => {
	return request({
		url: '/aliyun-api/employee',
		method: 'put',
		data: params,
	})
}
employeeApi.get = (id) => {
	return request({
		url: '/aliyun-api/employee/' + id,
		method: 'get',
	})
}
employeeApi.delete = (id) => {
	return request({
		url: '/aliyun-api/employee/' + id,
		method: 'delete',
	})
}

export default employeeApi